package com.ldzy.goods;

import io.seata.spring.annotation.datasource.EnableAutoDataSourceProxy;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

@SpringBootApplication//开启springboot的自动配置
@EnableDiscoveryClient//开启nacos的服务注册
@MapperScan("com.ldzy.goods.mapper")//扫描这个包下得接口和对应xml文件一起生成对象，添加到spring容器中
@EnableAutoDataSourceProxy
public class GoodsApplication {
    public static void main(String[] args) {
        SpringApplication.run(GoodsApplication.class,args);
    }
}
